package com.example.springcaptcha.controller;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/logger2")
@RestController
public class LoggerController2 {
    @RequestMapping("/print")
    public String print() {
//        System.out.println("sout日志打印");
//        logger.info("logger对象日志打印");
        log.trace("=====trace日志=====");
        log.debug("=====debug日志=====");
        log.info("=====info日志=====");
        log.warn("=====warn日志=====");
        log.error("=====error日志=====");

        return "success";
    }

}
